package org.acghub.common.registry;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

public abstract class AbstractMultiRegistry<K, V> implements MultiRegistry<K, V> {

    protected Map<K, Set<V>> registry;

    protected AbstractMultiRegistry(Map<K, Set<V>> registry) {
        Objects.requireNonNull(registry, "registry is null");
        this.registry = registry;
    }

    protected AbstractMultiRegistry() {
        this(new HashMap<>());
    }
}
